package com.dragonboat.repository;

import com.dragonboat.entity.Audience;
import com.dragonboat.entity.Organizer;
import com.dragonboat.entity.Team;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.Optional;
public interface AudienceRepository extends JpaRepository<Audience, Integer> {

    boolean existsByAudienceName(String audienceName);
    Optional<Audience> findByAudienceName(String audienceName);
    Optional<Audience> findById(Integer audienceId);
}